package StudyCode.summary.Basic.mystring;

import java.util.Arrays;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringChar {
	public static void main(String[] args) {
		String str = "Hello World";
		System.out.println("chartAt 方法:");
		for (int i = 0; i < str.length(); i++) {
			System.out.println(str.charAt(i));
		}
		System.out.println();
		System.out.println("toCharArray 方法:");
		System.out.println(Arrays.toString(str.toCharArray()));
	}
}
